package com.crazy.crazytransactionservice.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.crazy.crazymodel.model.entity.Position;
import com.crazy.crazymodel.model.vo.PageBankCardAndShareVO;

import java.math.BigDecimal;

public interface PositionService extends IService<Position> {

    PageBankCardAndShareVO getProductsPosition(int customerID, int current);


    Position getPosition(int customerID,int productID,String bankCardNumber);

    //冻结持仓表里份额数
    Void FreezeShares(int customerID, int productID, BigDecimal share,String bankCardNumber);

    //取消了赎回订单 需要解冻
    Void cancelFreeze(int customerID, int productID, BigDecimal share,String bankCardNumber);

    //确认赎回后 更新持仓表 更新份额和冻结份额两个字段
    Void confirmRedeem(int customerID, int productID, BigDecimal share,BigDecimal amount,String bankCardNumber);
}
